<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@page import="java.util.Properties" %>
<%@page import="java.net.InetAddress" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="${pageContext.request.contextPath }/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath }/h-ui/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath }/h-ui/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>我的桌面</title>
<%
	InetAddress addr = InetAddress.getLocalHost();   
	String ip=addr.getHostAddress().toString(); //获取本机ip  
	String hostName=addr.getHostName().toString(); //获取本机计算机名称  
	System.out.println("本机IP："+ip+"\n本机名称:"+hostName);
	Properties props=System.getProperties();  
%>
</head>
<body>
<div class="pd-20" style="padding-top:20px;">
  <p class="f-20 text-success">欢迎使用布调衣致后台！</p>
  <p>登录次数：${loginCount } </p>
  <p>上次登录IP：${adminLoginInfo.aliClient }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  	上次登录时间：
  	<fmt:formatDate value="${adminLoginInfo.aliTime }" type="both"/>
  </p>
  <table class="table table-border table-bordered table-bg">
    <thead>
      <tr>
        <th colspan="7" scope="col">信息统计</th>
      </tr>
      <tr class="text-c">
        <th>统计</th>
        <th>资讯库</th>
        <th>面料库</th>
        <th>花型库</th>
        <th>会员</th>
        <th>管理员</th>
        <th>下单</th>
      </tr>
    </thead>
    <tbody>
    	<c:forEach items="${listAll }" var="listOne">
    		<tr class="text-c">
		       	<td>总数</td>
		        <td>${listOne.informationCount }</td>
		        <td>${listOne.fabricCount }</td>
		        <td>${listOne.patternCount }</td>
		        <td>${listOne.memberCount }</td>
		        <td>${listOne.adminCount }</td>
		        <td>${listOne.orderTotal }</td>
		     </tr>
    	</c:forEach>
      <tr class="text-c">
        <td>今日</td>
        <td>${listToday.informationCount }</td>
        <td>${listToday.fabricCount }</td>
        <td>${listToday.patternCount }</td>
        <td>${listToday.memberCount }</td>
        <td>${listToday.adminCount }</td>
        <td>${listToday.orderTotal }</td>
      </tr>
      <tr class="text-c">
        <td>昨日</td>
        <td>${infoYesterday.informationCount }</td>
        <td>${infoYesterday.fabricCount }</td>
        <td>${infoYesterday.patternCount }</td>
        <td>${infoYesterday.memberCount }</td>
        <td>${infoYesterday.adminCount }</td>
        <td>${infoYesterday.orderTotal }</td>
      </tr>
      <tr class="text-c">
        <td>本周</td>
        <td>${infoWeek.informationCount }</td>
        <td>${infoWeek.fabricCount }</td>
        <td>${infoWeek.patternCount }</td>
        <td>${infoWeek.memberCount }</td>
        <td>${infoWeek.adminCount }</td>
        <td>${infoWeek.orderTotal }</td>
      </tr>
      <tr class="text-c">
        <td>本月</td>
        <td>${infoMonth.informationCount }</td>
        <td>${infoMonth.fabricCount }</td>
        <td>${infoMonth.patternCount }</td>
        <td>${infoMonth.memberCount }</td>
        <td>${infoMonth.adminCount }</td>
        <td>${infoMonth.orderTotal }</td>
      </tr>
    </tbody>
  </table>
  <table class="table table-border table-bordered table-bg mt-20">
    <thead>
      <tr>
        <th colspan="2" scope="col">服务器信息</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th width="200">服务器计算机名</th>
        <td><span id="lbServerName"><%=hostName %></span></td>
      </tr>
      <tr>
        <td>服务器IP地址</td>
        <td><%=ip %></td>
      </tr>
      <tr>
        <td>服务器域名</td>
        <td><%=request.getServerName() %></td>
      </tr>
      <tr>
        <td>服务器端口 </td>
        <td><%=request.getServerPort() %></td>
      </tr>
      <tr>
        <td>操作系统的名称 </td>
        <td><%=props.getProperty("os.name") %></td>
      </tr>
      <tr>
        <td>操作系统的版本</td>
        <td><%=props.getProperty("os.version") %></td>
      </tr>
      <tr>
        <td>Java的运行环境版本</td>
        <td><%=props.getProperty("java.version") %></td>
      </tr>
      <tr>
        <td>Java的运行环境供应商</td>
        <td><%=props.getProperty("java.vendor") %></td>
      </tr>
      <tr>
        <td>Java供应商的URL</td>
        <td><%=props.getProperty("java.vendor.url") %></td>
      </tr>
      <tr>
        <td>Java的安装路径</td>
        <td><%=props.getProperty("java.home") %></td>
      </tr>
      <tr>
        <td>Java的虚拟机规范版本</td>
        <td><%=props.getProperty("java.vm.specification.version") %></td>
      </tr>
      <tr>
        <td>Java的虚拟机规范供应商</td>
        <td><%=props.getProperty("java.vm.specification.vendor") %></td>
      </tr>
      <tr>
        <td>Java的虚拟机规范名称</td>
        <td><%=props.getProperty("java.vm.specification.name") %></td>
      </tr>
      <tr>
        <td>Java的虚拟机实现版本</td>
        <td><%=props.getProperty("java.vm.version") %></td>
      </tr>
      <tr>
        <td>Java的虚拟机实现供应商</td>
        <td><%=props.getProperty("java.vm.vendor") %></td>
      </tr>
      <tr>
        <td>Java的虚拟机实现名称</td>
        <td><%=props.getProperty("java.vm.name") %></td>
      </tr>
      <tr>
        <td>Java运行时环境规范版本</td>
        <td><%=props.getProperty("java.specification.version") %></td>
      </tr>
      <tr>
        <td>Java运行时环境规范名称</td>
        <td><%=props.getProperty("java.specification.name") %></td>
      </tr>
      <tr>
        <td>Java的类格式版本号</td>
        <td><%=props.getProperty("java.class.version") %></td>
      </tr>
      <tr>
        <td>Java的类路径</td>
        <td><%=props.getProperty("java.class.path") %></td>
      </tr>
      <tr>
        <td>加载库时搜索的路径列表</td>
        <td><%=props.getProperty("java.library.path") %></td>
      </tr>
      <tr>
        <td>默认的临时文件路径</td>
        <td><%=props.getProperty("java.io.tmpdir") %></td>
      </tr>
      <tr>
        <td>一个或多个扩展目录的路径</td>
        <td><%=props.getProperty("java.ext.dirs") %></td>
      </tr>
      <tr>
        <td>操作系统的名称</td>
        <td><%=props.getProperty("os.name") %></td>
      </tr>
      <tr>
        <td>操作系统的构架</td>
        <td><%=props.getProperty("os.arch") %></td>
      </tr>
      <tr>
        <td>操作系统的版本</td>
        <td><%=props.getProperty("os.version") %></td>
      </tr>
      <tr>
        <td>文件分隔符</td>
        <td><%=props.getProperty("file.separator") %></td>
      </tr>
      <tr>
        <td>用户的主目录</td>
        <td><%=props.getProperty("user.home") %></td>
      </tr>
      <tr>
        <td>用户的当前工作目录</td>
        <td><%=props.getProperty("user.dir") %></td>
      </tr>
      <tr>
        <td>用户的账户名称</td>
        <td><%=props.getProperty("user.name") %></td>
      </tr>
    </tbody>
  </table>
</div>
<footer class="footer">
  <p>感谢jQuery、layer、laypage、Validform、UEditor、My97DatePicker、iconfont、Datatables、WebUploaded、icheck、highcharts、bootstrap-Switch<br>Copyright &copy;2015 H-ui.admin v2.3 All Rights Reserved.<br>
    本后台系统由<a href="http://www.h-ui.net/" target="_blank" title="H-ui前端框架">H-ui前端框架</a>提供前端技术支持</p>
</footer>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/js/H-ui.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?080836300300be57b7f34f4b3e97d911";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F080836300300be57b7f34f4b3e97d911' type='text/javascript'%3E%3C/script%3E"));
</script>
</body>
</html>